<template>
	<w-modal v-model="show"
		@action='payFn' :title="null">
			<view class="text-center font-size-12 font-color-textPrimary">
				￥<text class="font-size-24">{{order.total_price}}</text>
			</view>
			<view class="text-center font-color-textPrimary mt-12 font-size-14">
				{{handleLang('您确认支付委托吗？')}}
			</view>
		</w-modal>
</template>

<script>
	import PayUtil from '@/utils/payUtil.js'
	export default {
		props: {
			order: {
				type: Object,
				default () {

				}
			}
		},
		data() {
			return {
				show: false
			}
		},
		methods: {
			pay() {
				this.show = true
			},
			payFn(res) {
				if (res) {
					new PayUtil({
						order_id:this.order.id,
						order_number:this.order.order_sn,
						order_type:12,
						pay_type:4,
						pay_way:this.order.pay_way
					})
				}
			}
		}
	}
</script>

<style>
</style>